import VueRouter from "vue-router"

import Home from "@/pages/Home";
import About from "@/pages/About";
import News from "@/pages/News";
import Message from "@/pages/Message";
import MessageDetail from "@/pages/MessageDetail";

export default new VueRouter({
    routes: [
        {
            path: '/home',
            component: Home,
            children: [
                {
                    path: "message",
                    component: Message,
                    children: [
                        {
                            path: 'detail',
                            component: MessageDetail
                        },
                    ]
                },
                {
                    path: "news",
                    component: News
                },
            ]
        },
        {
            path: '/about',
            component: About
        }
    ]
})